package com.cgs.query.handler

import com.cgs.query.domain.ParameterMapping
import java.sql.CallableStatement
import java.sql.Statement

/**resultSet转换器*/
interface ResultSetHandler {

    fun handleResultSet(hasResultSet: Boolean, stmt: Statement, limit: Int?): List<Any>

    fun handlerCyclingResultSets(hasResultSet: Boolean, stmt: Statement, limit: Int?): List<Any>

    fun handleOutputParameters(hasResultSet: Boolean, cs: CallableStatement, outParams: Map<Int, ParameterMapping>, limit: Int?): List<Any>
}